# $Id: PKGBUILD 175089 2013-01-13 09:51:21Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xmessage
pkgver=1.0.4
pkgrel=1
pkgdesc="Display a message or query in a window"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw')
makedepends=('xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/app/xmessage-${pkgver}.tar.bz2)
sha256sums=('bcdf4b461c439bb3ade6e1e41c47d6218b912da8e9396b7ad70856db2f95ab68')

build() {
  cd "${srcdir}/xmessage-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/xmessage-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
